#include <stdio.h>
#include <string.h>

int main()
{
    int n,i,sum[26],max=0,min=99999;
    int prime[25]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
    char ch[99999],*p;
    scanf("%s",ch);
    //gets(ch);

    for(p=ch;p<ch+strlen(ch);p++)
    {
        //printf("%c",*p);
        sum[*p-'a']++;
        //printf("%d\n",sum[*p-'a']);
    }

    for(n=0;n<26;n++)
    {
        if(sum[n]>=max)
            max=sum[n];
        if(sum[n]>0 && sum[n]<=min)
            min=sum[n];
    }

    for(i=0;i<25;i++)
    {
        if(prime[i]==max-min)
        {
            printf("Lucky Word\n%d\n",max-min);
            return 0;
        }
    }

    printf("No Answer\n0\n");
    return 0;
}